﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neznayka
{
    abstract public class SQLObjectFragment
    {
        private int _FirstTokenIndex;
        private int _LastTokenIndex;
        private int _StartOffset;
        private int _FragmentLength;

        #region ctor
        protected SQLObjectFragment()
        {
            _FirstTokenIndex = 0;
            _LastTokenIndex = 0;
            _StartOffset = 0;
            _FragmentLength = 0;
        }
        protected SQLObjectFragment(int FirstTokenIndex
                                , int LastTokenIndex
                                , int StartOffset
                                , int FragmentLength
                                )
        {
            _FirstTokenIndex = FirstTokenIndex;
            _LastTokenIndex = LastTokenIndex;
            _StartOffset = StartOffset;
            _FragmentLength = FragmentLength;
        }
        #endregion

        #region properties
        public int FirstTokenIndex
        {
            get { return _FirstTokenIndex; }
            set { _FirstTokenIndex = value; }
        }
        public int LastTokenIndex
        {
            get { return _LastTokenIndex; }
            set { _LastTokenIndex = value; }
        }
        public int StartOffset
        {
            get { return _StartOffset; }
            set { _StartOffset = value; }
        }
        public int FragmentLength
        {
            get { return _FragmentLength; }
            set { _FragmentLength = value; }
        }


        #endregion

    }
}
